home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3915 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: in2.uu.net!uis-1!lchee
  2. From: lchee@uis-1.UUCP (Larry Chee)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Secure from Decompiling??
  5. Message-ID: <5339@uis-1.UUCP>
  6. Date: 31 Jan 96 14:45:19 GMT
  7. References: <4djaq2$jd5@earth.superlink.net> <4en444$45k@news.cencom.net>
  8. Reply-To: lchee@uis-1.UUCP (Larry Chee)
  9. Organization: United Information Systems
  10.  
  11. In article <4en444$45k@news.cencom.net> tanp@ns (Bill Wendling) writes:
  12. >Bob Stewart inexplicably wrote:
  13. >}  I have a compiled C program containing a string that I want no one to
  14. >} be able to see, even with a decompiler. 
  15. >
  16. >} Is there any thing to put in the code that can prevent it from being
  17. >} decompiled, or make the decompiled code unintelligle??
  18. >
  19. >As of yet, there is no sure way of decompiling a program.  They could, 
  20. >however, look at the executable with a hex editor and see the message.
  21. >You could encrypt the message within the program and then decrypt
  22. >it before it is used in the program.
  23.  
  24. If you had a secret string and you encrypted it then yes,
  25. it would be difficult to see by peeking into the
  26. executable program.  But using a debugger you could
  27. discover the password used to encrypt the string and
  28. secret string itself.  Now there are ways to make debug-
  29. ging an executable program more difficult and there are
  30. ways of hiding the encryption password.  But even using
  31. these methods you can not guarentee that someone will
  32. not eventually discover what you are trying to hide.
  33. However, you can make it more difficult and time
  34. consuming the task of discovering you secret string.
  35.  
  36. Sometimes you can't be too paranoid,
  37. Lawrence D. Chee
  38.